github.com/jackc/pgx/v5/internal/pgio.Reader.rp (field)
27 uses
github.com/jackc/pgx/v5/internal/pgio (current package)
read.go#L26: rp int
read.go#L49: if len(r.s)-r.rp < n {
read.go#L57: r.fail(fmt.Errorf("%w: %d needed at offset %d, %d remain", ErrInsufficientBytes, n, r.rp, len(r.s)-r.rp))
read.go#L67: return len(r.s) - r.rp
read.go#L74: b := r.s[r.rp]
read.go#L75: r.rp += 1
read.go#L83: n := binary.BigEndian.Uint16(r.s[r.rp:])
read.go#L84: r.rp += 2
read.go#L96: n := binary.BigEndian.Uint32(r.s[r.rp:])
read.go#L97: r.rp += 4
read.go#L109: n := binary.BigEndian.Uint64(r.s[r.rp:])
read.go#L110: r.rp += 8
read.go#L122: r.fail(fmt.Errorf("invalid byte count %d at offset %d", n, r.rp))
read.go#L128: b := r.s[r.rp : r.rp+n]
read.go#L129: r.rp += n
read.go#L140: i := bytes.IndexByte(r.s[r.rp:], 0)
read.go#L142: r.fail(fmt.Errorf("%w: unterminated string at offset %d", ErrInsufficientBytes, r.rp))
read.go#L145: b := r.s[r.rp : r.rp+i]
read.go#L146: r.rp += i + 1
read.go#L156: offset := r.rp
read.go#L180: offset := r.rp
read.go#L201: if r.rp != len(r.s) {
read.go#L208: return fmt.Errorf("%d unexpected trailing bytes at offset %d", len(r.s)-r.rp, r.rp)